home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / tpapi1.zip / NWFSSERV.PA1 < prev    next >
Text File  |  1991-12-04  |  7KB  |  130 lines

  1. {!R! FONT 15; FTMD 15; EXIT;}
  2.  
  3.  
  4. {***************************************************************************}
  5. {** Program : NWFFSERV                                                    **}
  6. {***************************************************************************}
  7. {** Version : 1.0b            ** Started : 11/11/91  ** ENDed :   /  /    **}
  8. {***************************************************************************}
  9. {******************************** Description ******************************}
  10. {***************************************************************************}
  11. {** OOP library for Netware API                                           **}
  12. {**                                                                       **}
  13. {** This unit forms the second level object : FILESERVER                  **}
  14. {** This object is a descandent of          : NETWARE                     **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {**                                                                       **}
  19. {***************************************************************************}
  20. {******************************** Information ******************************}
  21. {***************************************************************************}
  22. {**                                                                       **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {**                                                                       **}
  26. {** This code is (c) 1991 Tony Covelli,                                   **}
  27. {** Portions (c) Novell Inc,                                              **}
  28. {**                                                                       **}
  29. {**                                                                       **}
  30. {***************************************************************************}
  31.  
  32. {$I NETWARE.INC}
  33.  
  34. UNIT NWFSSERV;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   netware, nwvar;
  41.  
  42. TYPE
  43.  
  44.   pFileServerOBJ = ^FileServerOBJ;
  45.   FileServerOBJ  = object (NetwareOBJ)
  46.  
  47.     constructor Init;
  48.  
  49.     FUNCTION    CheckConsolePrivileges : WORD;
  50.  
  51.     FUNCTION    CheckNetwareVersion             (MinimumVersion, MinimumSubVersion, MinimumRevision,
  52.                                                  MinimumSFT, MinimumTTS : WORD) : WORD;
  53.  
  54.     FUNCTION    ClearConnectionNumber           (ConnectionNumber : WORD) : WORD;
  55.  
  56.     FUNCTION    DisableFileServerLogin : WORD;
  57.  
  58.     FUNCTION    DisableTransactionTracking : WORD;
  59.  
  60.     FUNCTION    DownFileServer                  (ForceFlag : WORD) : WORD;
  61.  
  62.     FUNCTION    EnableFileServerLogin : WORD;
  63.  
  64.     FUNCTION    EnableTransactionTracking : WORD;
  65.  
  66.     FUNCTION    GetBinderyObjectDiskSpaceLeft   (ConnectionID : WORD; ObjectID : OT_BinderyID;
  67.                                                  VAR SystemElapsedTime, UnusedDiskBlocks : LONGINT;
  68.                                                  VAR RestrictionEnforced : WORD) : WORD;
  69.  
  70.     FUNCTION    GetConnectionsOpenFiles         (ConnectionID, ConnectionNumber : WORD;
  71.                                                  VAR LastRecord, LastTask : WORD; StructSize : WORD;
  72.                                                  VAR OpenFiles : Conn_Open_Files) : WORD;
  73.  
  74.     FUNCTION    GetConnectionsSemaphores        (ConnectionID, ConnectionNumber : WORD;
  75.                                                  VAR LastRecord, LastTask : WORD; StructSize : WORD;
  76.                                                  VAR OpenSemaphores : Conn_Semaphore ) : WORD;
  77.  
  78.     FUNCTION    GetDiskCacheStats               (ConnectionID, StructSize : WORD;
  79.                                                  VAR CacheStats : Disk_Cache_Stats) : WORD;
  80.  
  81.     FUNCTION    GetDiskChannelStats             (ConnectionID, ChannelNumber, StructSize : WORD;
  82.                                                  VAR ChannelStats : Disk_Channel_Stats) : WORD;
  83.  
  84.     FUNCTION    GetDiskUtilization              (ObjectID : OT_BinderyID; VolumeNumber : BYTE;
  85.                                                  VAR UsedDirectories, UsedFiles, UsedBlocks : LONGINT) : WORD;
  86.  
  87.     FUNCTION    GetDriveMappingTable            (ConnectionID, StructSize : WORD;
  88.                                                  VAR DriveMappingTable : Drive_Map_Table) : WORD;
  89.  
  90.     FUNCTION    GetFileServerDateAndTime        (VAR DateAndTime : Byte7ArrayType) : WORD;
  91.  
  92.     FUNCTION    GetFileServerDescriptionStrings (VAR CompanyName, Revision : String80Type;
  93.                                                  VAR RevisionDate : String24Type;
  94.                                                  VAR CopyrightNotice : String255Type) : WORD;
  95.  
  96.     FUNCTION    GetFileServerLANIOStats         (ConnectionID, StructSize : WORD;
  97.                                                  VAR ServerLANIOStats : Server_Lan_IO) : WORD;
  98.  
  99.     FUNCTION    GetFileServerLoginStatus        (VAR LoginEnabledFlag : WORD) : WORD;
  100.  
  101.     FUNCTION    GetFileServerMiscInformation    (ConnectionID, StructSize : WORD;
  102.                                                  VAR MiscInfo : Server_Misc_Info) : WORD;
  103.  
  104.     PROCEDURE   GetFileServerName               (ConnectionID : WORD; VAR FileServerName : ObjectNameType);
  105.  
  106.     FUNCTION    GetFileSystemStatistics         (ConnectionID, StructSize : WORD;
  107.                                                  VAR FileSystemStats : File_Sys_Stats) : WORD;
  108.  
  109.     FUNCTION    GetLANDriverConfigInfo          (ConnectionID : WORD; LANBoardNumber : BYTE; StructSize : WORD;
  110.                                                  VAR LANDriverConfig : LAN_Config) : WORD;
  111.  
  112.     FUNCTION    GetPathFromDirectoryEntry       (ConnectionID : WORD; VolumeNumber : BYTE; DirectoryEntry : WORD;
  113.                                                  VAR DirectoryPath : PathNameType) : WORD;
  114.  
  115.     FUNCTION    GetPhysicalDiskStats            (ConnectionID : WORD; PhysicalDiskNumber : BYTE; StructSize : WORD;
  116.                                                  VAR PhysicalDiskStats : Phys_Disk_Stats;
  117.                                                  VAR DriveDefinition : String64Type) : WORD;
  118.  
  119.     FUNCTION    GetServerInformation            (VAR FileServerInformation : File_Serv_Info) : WORD;
  120.  
  121.     FUNCTION    SendConsoleBroadcast            (Message : BroadcastMessageType; ConnectionCount : WORD;
  122.                                                  ConnectionList : ConnectionListType) : WORD;
  123.  
  124.     FUNCTION    SetFileServerDateAndTime        (Year, Month, Day, Hour, Minute, Second : WORD) : WORD;
  125.  
  126.     destructor  Done; virtual;
  127.  
  128.   END;
  129.  
  130.